﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lesson6 : MonoBehaviour
{
    // Start is called before the first frame update
    public GameObject tank;
    

    void Start()
    {
       GameObject tankClone =  Instantiate<GameObject>(tank);
        tankClone.name = "tankClone"; 
    }
 
    // Update is called once per frame
    void Update()
    {
        GameObject.Find("tankClone").transform.Translate(transform.forward * 1f * Time.deltaTime);
    }
}
